public class foreach{
    public static void main(String[] args) {
        int i;
        int arr[] = new int[5];
        for(i = 0;i < 5; i++){
            arr[i] = i;
        }
        for(i = arr.length-1;i >= 0;i--){
            System.out.println("数组倒数是："+arr[i]+"\n");
        }
    }
}